package models

import (
	"time"
)

type Productreview struct {
	Id int64 `xorm:"oid"`

	Customerid      int       `json:"CustomerId" xorm:"not null INTEGER"`
	Productid       int       `json:"ProductId" xorm:"not null INTEGER"`
	Isapproved      int       `json:"IsApproved" xorm:"not null BIT(1)"`
	Title           string    `json:"Title" xorm:"VARCHAR"`
	Reviewtext      string    `json:"ReviewText" xorm:"VARCHAR"`
	Rating          int       `json:"Rating" xorm:"not null INTEGER"`
	Helpfulyestotal int       `json:"HelpfulYesTotal" xorm:"not null INTEGER"`
	Helpfulnototal  int       `json:"HelpfulNoTotal" xorm:"not null INTEGER"`
	Createdonutc    time.Time `json:"CreatedOnUtc" xorm:"not null DATETIME"`
}
